package com.key.util;

import java.sql.Connection;
import java.sql.PreparedStatement;

import com.key.tools.ConnectionPool;

public class UserUtil {

	public static void main(String args[]){
		ConnectionPool cp = ConnectionPool.getInstance();
		Connection ct = cp.getConnection();
		try{
			//PreparedStatement ps = ct.prepareStatement("insert into t_user values('1', 'admin', '管理员', md5(123), '5','','2011-01-01', '1')");
			PreparedStatement ps = ct.prepareStatement("update t_group set groupname = '管理员组' where code='admin'");
			ps.executeUpdate();
			ps.close();
			ct.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
